﻿<UserControl x:Class="EzDesk.DesktopClient.View.SelfInfoView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid Margin="5">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <!--<Button Grid.Row="0" HorizontalAlignment="Left"  Width="66">
                <Image  Margin="3" Source="{DynamicResource ResourceKey=HeadShot2}"></Image>
            </Button>-->
            
            <StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Bottom">
                <!--<ComboBox SelectedIndex="0">
                    <ComboBoxItem>
                        <Image  Source="{DynamicResource UserStatus}" Width="16"></Image>
                    </ComboBoxItem>
                    <ComboBoxItem>
                        <Image  Source="{DynamicResource UserStatus}" Width="16"></Image>
                    </ComboBoxItem>
                </ComboBox>-->
                <Image  Source="{DynamicResource UserStatus}" Width="16"></Image>
                <TextBlock Text="{Binding UserProfileModel.Name}"></TextBlock>
            </StackPanel>
            <TextBox Grid.Row="2"  Text="{Binding UserProfileModel.UserName,Mode=TwoWay}" BorderThickness="0">
                <TextBox.Style>
                    <Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
                        <Style.Triggers>
                            <MultiTrigger>
                                <MultiTrigger.Conditions>
                                    <Condition Property="IsKeyboardFocusWithin"  Value="True"></Condition>
                                    <Condition Property="IsMouseOver"  Value="True"></Condition>
                                </MultiTrigger.Conditions>
                                <MultiTrigger.Setters>
                                    <Setter Property="BorderThickness" Value="1"></Setter>
                                    <Setter Property="Background" Value="{StaticResource BackBlue}"></Setter>
                                    <Setter Property="Foreground" Value="White"></Setter>
                                </MultiTrigger.Setters>
                            </MultiTrigger>
                        </Style.Triggers>
                    </Style>
                </TextBox.Style>
            </TextBox>
        </Grid>
    </Grid>
</UserControl>
